package abstractfactory;

/**
 * @version 1.0
 * @author:罗苏琴
 * 除法
 * @Date 2024/12/9 上午10:07
 */
public class Chu implements OperateFactory {
    @Override
    public double apply(double a, double b) {
        if(b==0){
            System.out.println("除数不能为零");
        }
        return a/b;
    }
}
